package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Getter
@Setter
public class TravelComment extends BaseDomain{
    //评论人id
    private User user;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //评论内容
    private String content;
    //评论图片
    private String imgUrls;
    //评论游记id
    private Long travel_id;
    //评论状态
    private Boolean state;
}